package com.wmh.baseservice.skd.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wmh.baseservice.skd.pojo.SkdCollect;
import com.wmh.baseservice.skd.service.SkdCollectService;
import com.wmh.baseservice.skd.mapper.SkdCollectMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
* @author CH
* @description 针对表【skd_collect】的数据库操作Service实现
* @createDate 2024-01-23 11:09:15
*/
@Service
public class SkdCollectServiceImpl extends ServiceImpl<SkdCollectMapper, SkdCollect>
    implements SkdCollectService{
    @Resource
    private SkdCollectMapper skdCollectMapper;

    /**
     * 根据用户id获取团购活动id列表
     * @param usId 用户id
     * @return 返回团购活动id列表
     */
    @Override
    public List<SkdCollect> getByUserId(Long usId) {
        return skdCollectMapper.getByUserId(usId);
    }

    @Override
    public List<SkdCollect> searchCollect(String searchName, Long userId) {
        return skdCollectMapper.searchCollect(searchName, userId);
    }
}




